package bb.lanxing.lib.devices.base;

import android.bluetooth.BluetoothGatt;
import android.bluetooth.BluetoothGattCharacteristic;
import bb.lanxing.lib.devices.core.ble.AbsBleDevice;

public class SimpleBluetoothGattCallbackCompat<CLIENT extends AbsBleDevice> extends SimpleBluetoothGattCallback<CLIENT> {
    public SimpleBluetoothGattCallbackCompat(CLIENT client) {
        super(client);
    }

    @Override
    public void onCharacteristicRead(BluetoothGatt bluetoothGatt, BluetoothGattCharacteristic bluetoothGattCharacteristic, int i) {
        super.onCharacteristicRead(bluetoothGatt, bluetoothGattCharacteristic, i);
        BleDataDispatcher.getInstance().dispatch(this.mClientRef, bluetoothGattCharacteristic);
    }

    @Override
    public void onCharacteristicChanged(BluetoothGatt bluetoothGatt, BluetoothGattCharacteristic bluetoothGattCharacteristic) {
        super.onCharacteristicChanged(bluetoothGatt, bluetoothGattCharacteristic);
        BleDataDispatcher.getInstance().dispatch(this.mClientRef, bluetoothGattCharacteristic);
    }
}
